Skip to content

Increase BLE transfer timeout from 45s to 120s#6

Open
deepseven wants to merge 1 commit intoskorokithakis:masterfrom
deepseven:pr/increase-transfer-timeout
Open

Increase BLE transfer timeout from 45s to 120s#6
deepseven wants to merge 1 commit intoskorokithakis:masterfrom
deepseven:pr/increase-transfer-timeout

Conversation

@deepseven
Copy link
Copy Markdown

The 45-second timeout is too aggressive for larger recordings transferred over BLE. A single 3-minute recording at ~32 kbit/s IMA-ADPCM produces roughly 720 KB, which at typical BLE throughput (10-15 KB/s with notification overhead) takes 48-72 seconds to transfer.

Increasing to 120 seconds gives comfortable headroom while still bounding the worst case. The real protection against stuck transfers should come from stall detection (checking whether data is still flowing) rather than an aggressive overall timeout.

The 45-second timeout is too aggressive for larger recordings transferred over BLE. A single 3-minute recording at ~32 kbit/s IMA-ADPCM produces roughly 720 KB, which at typical BLE throughput (10-15 KB/s with notification overhead) takes 48-72 seconds to transfer.

Increasing to 120 seconds gives comfortable headroom while still bounding the worst case. The real protection against stuck transfers should come from stall detection (checking whether data is still flowing) rather than an aggressive overall timeout.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant